<?php
echo "<?php\n";
$label=$this->class2name($this->modelClass);
echo "\$this->breadcrumbs=array(
	'$label',
);\n";
echo " ?>";
?>

<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <?php echo CHtml::link('首页',Yii::app()->createUrl('index/main')); ?>
        </li>
        <li>
            <a href="#">Other Pages</a>
        </li>
        <li class="active">Blank Page</li>
    </ul><!-- .breadcrumb -->


</div>






<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->




<h1>
    <?php echo "<?php\n";
    echo " echo Yii::t('yii', '$label');\n";
    echo " ?>";?>
</h1>

<hr />


<?php echo "<?php"; ?>

$this->beginWidget('zii.widgets.CPortlet', array(
'htmlOptions'=>array(
'class'=>''
)
));
$this->widget('bootstrap.widgets.TbMenu', array(
'type'=>'pills',
'items'=>array(
array('label'=>Yii::t('yii', 'Create'), 'icon'=>'icon-plus', 'url'=>Yii::app()->controller->createUrl('create')),
array('label'=>Yii::t('yii', 'List'), 'icon'=>'icon-th-list', 'url'=>Yii::app()->controller->createUrl('index'),'active'=>true, 'linkOptions'=>array()),
),
));
$this->endWidget();

?>


<hr />

<div class="alert alert-info">
    <button data-dismiss="alert" class="close" type="button">
        <i class="icon-remove"></i>
    </button>
    <strong><?php echo "<?php echo "; ?>Yii::t('yii', 'headsUp'); ?></strong>
    <?php echo "<?php echo "; ?>$headsUp ?>
    <br>
</div>

<hr />


<?php echo '<?php'; ?>
    Yii::app()->bootstrap->register();
    $this->widget('bootstrap.widgets.TbGridView', array(
	'id' => '<?php echo $this->class2id($this->modelClass); ?>-grid',
    'type'=>'striped bordered condensed',
    'dataProvider' => $model->search(),
    'template'=>"{items}{pager}",
	'filter' => $model,
    'pager'=>array(
        'class'=>'CLinkPager',
        'nextPageLabel'=>'下一页',
        'prevPageLabel'=>'上一页',
        'lastPageLabel'=>'末页',
        'header'=>'',
    ),
    'ajaxUpdate'=>true,  			//是否使用ajax分页   null为ajax分页
	'columns' => array(
<?php
$count = 0;
foreach ($this->tableSchema->columns as $column) {
	if (++$count == 7)
		echo "\t\t/*\n";
	echo "\t\t" . $this->generateGridViewColumn($this->modelClass, $column).",\n";
}
if ($count >= 7)
	echo "\t\t*/\n";
?>

            array(

            'type'=>'raw',
            'value'=>'"
            <a href=\'javascript:void(0);\' onclick=\'renderView(".$data-><?php echo $this->tableSchema->primaryKey; ?>.")\' rel=\'tooltip\' data-original-title=\'预览\'   class=\'btn btn-xs btn-purple view\'  ><i class=\'icon-eye-open\'></i></a>
            "',

            ),
            array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
            'template'=>'{update}{delete}',
            'updateButtonOptions'=>array(
                'class'=>'btn btn-xs btn-primary view',
                'style'=>'margin-right:5px;',
            ),
            'deleteButtonOptions'=>array(
                'class'=>'btn btn-xs btn-danger view',
                'style'=>'margin-right:5px;',
            ),
            'htmlOptions'=>array('style'=>'width:70px;'),
        ),

	),
));




            $this->renderPartial("_ajax_view");

?>



        </div>
        <!-- PAGE CONTENT ENDS -->
    </div><!-- /.col -->
</div><!-- /.row -->